#include <iostream>

// 测试框架，如果算是框架的话
#define test_name(name, num) name##num
#define test_it(name, need_run, ...) int test_name(name, __LINE__) = []() { \
    if (need_run) { printf("\n---- %s stdout ----\n", #name); __VA_ARGS__ } \
    else { printf("\n---- %s skip ----\n", __FUNCTION__); } \
    return 0; }();
int main(int argc, char *argv[]) { return 0; }


// 测试用例
test_it(test_hello, true, {
    std::cout << "hello, world!" << std::endl;
});

test_it(test_next, true, {
    int a[] = {0,1,2};
    std::cout << "hello, first!" << std::endl;
});